Author: Halfvares Mats, Teknikhuset AB.

Published: 2007-01-25

Applies to:
  • Content Studio ver. 5

Type: Information


Symptoms

In Content Studio version 5, when you change the programming language a compile error might occur.

Cause

If you have any code behind defined or if someone have viewed the code behind for the document some default programming code is inserted. This code will remain when you change the programming language using the Page directive. Since different programming languages have different syntax the page will get errors.

Resolution

If you do not have any user defined code you can just switch to the code behind view and remove all code and switch back to the visual editor. When you revisit the code behind view the code behind will get restored in the new language. If you have written your own code you should copy it before and past in it back after beeing translated to the new language.

More information

Content Studio 5.0 supports C-sharp (C#) and Visual Basic.NET as programming language on the server side. These are the two major language that a vast majority of ASP.NET and Content Studio developers use when developing their web sites.